package com.stroage.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
@author cyt
@create 2020-06-07 10:34
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "undo_log")
public class UndoLog {
    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    @TableField(value = "branch_id")
    private Long branchId;

    @TableField(value = "xid")
    private String xid;

    @TableField(value = "context")
    private String context;

    @TableField(value = "rollback_info")
    private Integer rollbackInfo;

    @TableField(value = "log_created")
    private Date logCreated;

    @TableField(value = "log_modified")
    private Date logModified;

    @TableField(value = "ext")
    private String ext;

    public static final String COL_ID = "id";

    public static final String COL_BRANCH_ID = "branch_id";

    public static final String COL_XID = "xid";

    public static final String COL_CONTEXT = "context";

    public static final String COL_ROLLBACK_INFO = "rollback_info";

    public static final String COL_LOG_CREATED = "log_created";

    public static final String COL_LOG_MODIFIED = "log_modified";

    public static final String COL_EXT = "ext";
}